package com.einmeer.hfbank.controller;

import com.einmeer.hfbank.service.InterestRateService;
import com.einmeer.hfbank.vo.ResultVo;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 芊嵛
 * @date 2024/1/13
 */
@RestController
@RequestMapping("/interestRate")
public class InterestRateController {
    @Resource
    private InterestRateService interestRateService;

    /**
     * 查询所有利率
     * @return
     */
    @GetMapping("/queryAll")
    @CrossOrigin
    public ResultVo queryAll(){
        return interestRateService.queryAll();
    }

}
